<template><div><h1 id="nvm" tabindex="-1"><a class="header-anchor" href="#nvm" aria-hidden="true">#</a> nvm</h1>
<div class="language-javascript ext-js line-numbers-mode"><pre v-pre class="language-javascript"><code>nvm list     <span class="token comment">//查看已安装的nodejs版本</span>
nvm on      <span class="token comment">// 启用node.js版本管理</span>
nvm off   <span class="token comment">// 禁用node.js版本管理(不卸载任何东西)</span>
nvm install <span class="token operator">&lt;</span>version<span class="token operator">></span>       <span class="token comment">// 安装node.js的命名 version是版本号 例如：nvm install 8.12.0</span>
nvm use <span class="token operator">&lt;</span>version<span class="token operator">></span>      <span class="token comment">//使用某一version的nodejs</span>
nvm uninstall <span class="token operator">&lt;</span>version<span class="token operator">></span>   <span class="token comment">// 卸载指定版本的nodejs</span>
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></div></template>


